﻿using System.Linq;
using Core.Contract.DataContract;
using Data.DAO;
using www.Models;

namespace Data.BO
{
    public class TypeRefBO//:BaseBO<TypeDAO,RelaxType>
   {
       #region Value
       private readonly TypeRefDAO _typeDao=new TypeRefDAO();
       #endregion

       #region Ham lay du lieu

       public IQueryable<RelaxTypeDataContract> GeTypeDataContracts()
       {
           return _typeDao.GetTypeDataContracts();
       }

        public IQueryable<RelaxTypeDataContract> GetTypeDataContract()
        {
            return _typeDao.GetTypeDataContract();
        }
       #endregion

       #region Add
       public void Add(TYPE_REF type)
       {
           _typeDao.Add(type);
       }
       #endregion

       #region Update

       public void Update(TYPE_REF type)
       {
           _typeDao.Update(type);
       }
       #endregion

       #region Delete

       public void Delete(int iId)
       {
           _typeDao.Delete(iId);
       }
       #endregion
   }
}
